package leetcode.editor.cn.q1xx

class Q172 {
    fun trailingZeroes(n: Int): Int {
        var zeroCount = 0
        var value = n
        while (value > 0) {
            value /= 5
            zeroCount += value
        }
        return zeroCount
    }
}